package text;

/**
 * Created by butterfly on 2018/5/24.
 */
public class TestGc {
    public static void main(String[] args) {
        for (int i = 0; i < 4; i++) {
            new TestGc();
            //通知系统垃圾回收，但不一定会回收
            System.gc();
        }
    }


    @Override
    protected void finalize() throws Throwable {
        super.finalize();
        System.out.println("======");
    }
}